package commands;

import java.io.PrintWriter;

public class EchoAction implements Action {

	private PrintWriter pw;
	private String message;

	public EchoAction(PrintWriter pw, String message) {
		this.pw = pw;
		this.message = message;
	}

	@Override
	public void perform() {
		pw.println(message);
		pw.flush();

	}

}
